package com.ccdt.tv.smartrecommend;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sheng on 2018/9/13.
 * 直播来源数据类 主要用于启动 时移
 */

public class FromLiveBean implements Parcelable{

    private String channelId;
    private String progname;
    private String sid;
    private String tsid;
    private String startTime;
    private String endTime;
    private boolean shiftFlag;

    public FromLiveBean() {
    }


    protected FromLiveBean(Parcel in) {
        channelId = in.readString();
        progname = in.readString();
        sid = in.readString();
        tsid = in.readString();
        startTime = in.readString();
        endTime = in.readString();
        shiftFlag = in.readByte() != 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(channelId);
        dest.writeString(progname);
        dest.writeString(sid);
        dest.writeString(tsid);
        dest.writeString(startTime);
        dest.writeString(endTime);
        dest.writeByte((byte) (shiftFlag ? 1 : 0));
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<FromLiveBean> CREATOR = new Creator<FromLiveBean>() {
        @Override
        public FromLiveBean createFromParcel(Parcel in) {
            return new FromLiveBean(in);
        }

        @Override
        public FromLiveBean[] newArray(int size) {
            return new FromLiveBean[size];
        }
    };

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getProgname() {
        return progname;
    }

    public void setProgname(String progname) {
        this.progname = progname;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getTsid() {
        return tsid;
    }

    public void setTsid(String tsid) {
        this.tsid = tsid;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public boolean isShiftFlag() {
        return shiftFlag;
    }

    public void setShiftFlag(boolean shiftFlag) {
        this.shiftFlag = shiftFlag;
    }

    @Override
    public String toString() {
        return "FromLiveBean{" +
                "channelId='" + channelId + '\'' +
                ", progname='" + progname + '\'' +
                ", sid='" + sid + '\'' +
                ", tsid='" + tsid + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", shiftFlag=" + shiftFlag +
                '}';
    }
}
